package cn.cordys.crm.system.dto.request;

import cn.cordys.common.domain.BaseModuleFieldValue;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.DecimalMax;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;


/**
 * @author guoyuqi
 */
@Data
public class ProductEditRequest {

    @Schema(description = "id")
    @Size(max = 32)
    private String id;

    @Schema(description = "产品名称")
    private String name;

    @Schema(description = "价格")
    @DecimalMin(value = "0.00", inclusive = false, message = "{product.price.min}")
    @DecimalMax(value = "10000000000.00", inclusive = false, message = "{product.price.max}")
    private BigDecimal price;

    @Schema(description = "状态")
    private String status;

    @Schema(description = "自定义字段")
    private List<BaseModuleFieldValue> moduleFields;
}